package com.myschool.server.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name = "subject_group")
public class SubjectGroup extends BaseEntity {

	@Column(length = 25, unique = true)
	@Enumerated(EnumType.STRING)
	private SubjectType type;

	/**
	 * @return the type
	 */
	public SubjectType getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(SubjectType type) {
		this.type = type;
	}

}
